package com.hspedu.transformation;

import java.io.*;

/**
 * @author LiuJinTao
 * @className InputStreamReader_
 * @date 2024/06/28 15:44
 * @description TODO
 */
public class InputStreamReader_ {
    public static void main(String[] args) throws IOException {
        String path = "e:\\a.txt";
//        InputStreamReader gbk = new InputStreamReader(new FileInputStream(path), "gbk");
//        BufferedReader br = new BufferedReader(gbk);
        BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(path), "gbk"));
        String s = br.readLine();
        System.out.println(s);
        br.close();
    }
}
